
<?php

include '../includes/common.php';
var_dump(json_decode(get_curl("http://110.40.41.177:9981/api/getserverand003/"),true));
exit;
use lib\XFCaptcha;
$XFCaptcha = new XFCaptcha(CaptchaCode);
var_dump($XFCaptcha->XYcaptcha('2755'));
exit;
use lib\AesRsa_Encrypter;


var_dump(base64_decode(base64_decode('L1dEOWFsdnVhbS8ybmMzWVlzS2JPd0VrR0RVdThEWUlYTHRqQU0vV01BdEhGcUxrWlZNSTRjcG9mc1o2T3lpNWphdVN4QTFHUFdDbWtLZkZ1SWY3U1RsUng1dXRnRmhTZ01sdy9qNkIvN3VuQjhJZjFFaXdLK0lGSW1GS2YvVEhMeDJKcFBNV1VCNUw4Q1Q3aFhlSGVISUlTYTRhdWVwV0tlQjhDVU5IQmRZdTE3bmFTNldMdURjRFhCMEVwclRjR2l4MlN4M3Nia1hTbnVVK094Z3JjYk9GMnlSakNBUVZyY21wbndlSmNwZmRBMU1jRGZZbmo5UEVVbUc0OWRZRDFoQi9YY1hMK0s3bDliZENUNkd1RjQzcHM3MkdEZThyM1BPdkUrZFdjN2NGeHVMNWFya3RzUzE2Z3dhb3dlWWFMOXVTcFBibS8vd3RWUWo5TWM0VitNNTBmSVRZU1QyMmo4Z3VGN1Zsa1RVZEYwK2hUckZKZDZaU0o4cW9qOXN5SUZpaFAwSGRQYlo1aDViR0l0OWdLVkg1eGxPU2Fkb2t0R3ZHTEFVVllIRGFoRFdVc2lETHhXa3lsVU43R2xtdUtreUk1MDd4cktVcEROMy9RWlRpMGZuMHh0QURQamcvTEpQbXVkQUU5Skk9')));exit;
$publicKey = <<<EOD
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA04l/gtpDfigUSrCcBReh wE1EtkPcBEqaduMAMxFwGLnXaLq/NYSF8b3QKSfqf+9p0pssYcU+JMreYWr0NWMX 1TeEw3WHOk8T5ynnQ43Q0FTgjSKnT+N3JEDJJqbEpcj6ap/k5I+ww6u/sSDatV30 S+V1+lLZss3zxAA5nLdxk+Ikfq29Ul/LLqs6C3V4oFv1O4BdTnHnSnzoBnqIDREa m57MfUEz5dLPix7ss2Ar/T/sgFOODMRs/+dxr8xBJK3QPFph1OfZA8Z8m9Lqt5eP xmxDC9faQ+JynkE8KpCNLIoKuSVJRYeHNaMT9+cqozj4U9UJIkxPt03Wuuc1eZ0G /wIDAQAB
-----END PUBLIC KEY-----
EOD;

$fixedKey = md5('XFBDXYTOKEN555666888777****....###@@@@');
//  $json = json_encode(array('sign'=>strtoupper(md5($mac.$fixedKey))));
$token  = '123456';
$token = AesRsa_Encrypter::encode($token,$fixedKey,$publicKey);

var_dump($token);
exit;
var_dump(json_decode($json,true));
exit;

rsaxy();
?>